home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / mrcry204.zip / DECAY.EKA < prev    next >
Text File  |  1991-03-04  |  396b  |  12 lines

  1. ; This problem demonstrates how to solve a user-defined
  2. ; transcendental function of time.
  3. ; The problem is to calculate MassUnknown, the mass of
  4. ; 100 kg uranium 238 after one million years.
  5. ; Also calculate how long it would take to decay to 1 kg.
  6.  
  7.  Mass(Years) := InitialMass * 2^(-Years/HalfLife)
  8.  InitialMass = 100
  9.  HalfLife = 10e6
  10.  MassUnknown = Mass(1e6)
  11.  1 = Mass(TimeUnknown)
  12.